/**
    Copyright (c) 2010-2011 yakiimo02
    Distributed under the New BSD License.
    See included license.txt or http://www.yakiimo3d.com/NewBSDLicense.txt
**/

#include "DXUT.h"
#include "DataBuffer.h"

DataBuffer::DataBuffer() : m_nWidth( 0 ), m_nHeight( 0 )
{
}

DataBuffer::~DataBuffer()
{
}

void DataBuffer::Create( int nWidth, int nHeight )
{
    m_nWidth = nWidth;
    m_nHeight = nHeight;
    m_data.resize( m_nWidth*m_nHeight );
}

void DataBuffer::Destroy()
{
    m_data.clear();
}